import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
import { DateConverter } from '@farris/kendo-binding';
var ZdcdComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(ZdcdComponentViewmodelForm, _super);
    function ZdcdComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'fjxx.fileName',
            name: "{{fjxx_FileName_5817840f_4apn}}",
            binding: 'fjxx.fileName',
            updateOn: 'blur',
            defaultI18nValue: '附件名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], ZdcdComponentViewmodelForm.prototype, "fjxx_FileName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fjxx.fileSize',
            name: "{{fjxx_FileSize_5817840f_77v2}}",
            binding: 'fjxx.fileSize',
            updateOn: 'blur',
            defaultI18nValue: '附件大小',
            validRules: [
                {
                    type: 'maxValue',
                    constraints: [1.7976931348623157e+308],
                },
                {
                    type: 'minValue',
                    constraints: [-1.7976931348623157e+308],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], ZdcdComponentViewmodelForm.prototype, "fjxx_FileSize", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fjxx.fileCreateTime',
            name: "{{fjxx_FileCreateTime_5817840f_tgad}}",
            binding: 'fjxx.fileCreateTime',
            updateOn: 'blur',
            valueConverter: new DateConverter('yyyy-MM-dd'),
            defaultI18nValue: '附件上传时间',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], ZdcdComponentViewmodelForm.prototype, "fjxx_FileCreateTime", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'xfrq',
            name: "{{xfrq_860333fb_yfnn}}",
            binding: 'xfrq',
            updateOn: 'blur',
            valueConverter: new DateConverter('yyyy-MM-dd'),
            defaultI18nValue: '下发日期',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], ZdcdComponentViewmodelForm.prototype, "xfrq", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fjxx.attachmentId',
            name: "{{fjxx_AttachmentId_5817840f_xcss}}",
            binding: 'fjxx.attachmentId',
            updateOn: 'blur',
            defaultI18nValue: '附件Id',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], ZdcdComponentViewmodelForm.prototype, "fjxx_AttachmentId", void 0);
    ZdcdComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '人员制度存档',
            enableValidate: true
        }),
        Injectable()
    ], ZdcdComponentViewmodelForm);
    return ZdcdComponentViewmodelForm;
}(Form));
export { ZdcdComponentViewmodelForm };
